﻿namespace LitTools
{
    /// <summary>
    /// 状态接口
    /// </summary>
    public interface IState
    {
        /// <summary>
        /// 进入状态
        /// </summary>
        /// <param name="mechine"></param>
        public void OnEnter(StateMechine mechine);
        /// <summary>
        /// 更新状态
        /// </summary>
        /// <param name="mechine"></param>
        public void OnUpdate(StateMechine mechine);
        /// <summary>
        /// 退出状态
        /// </summary>
        /// <param name="mechine"></param>
        public void OnExit(StateMechine mechine);
    }
}